<div class="audits view">
    <h2><?php __('Audit'); ?></h2>
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
            echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Name'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Client'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $this->Html->link($audit['Client']['name'], array('controller' => 'clients', 'action' => 'view', $audit['Client']['id'])); ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('User'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $this->Html->link($audit['User']['username'], array('controller' => 'users', 'action' => 'view', $audit['User']['id'])); ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Date'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['date']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 1'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 1']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 2'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 2']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 3'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 3']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 4'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 4']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 5'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 5']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                    echo $class; ?>><?php __('Note 6'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
                <?php echo $audit['Audit']['Misc 6']; ?>
            &nbsp;
        </dd>
    </dl>
    <div class="right">
        <?php echo $this->Html->link(__('Edit Audit', true), array('action' => 'edit', $audit['Audit']['id'])); ?> &nbsp &nbsp &nbsp
        <?php echo $this->Html->link(__('Delete Audit', true), array('action' => 'delete', $audit['Audit']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $audit['Audit']['id'])); ?>
    </div>		
    <br /><br />
    <h3><?php __('ISP'); ?></h3>
    <?php if (!empty($audit['Isp'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('ISP'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Isp'] as $isp):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $isp['ISP']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'isps', 'action' => 'view/'.$isp['id']), array('title'=> 'View an ISP','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'isps', 'action' => 'edit/'.$isp['id']), array('title'=> 'Edit an ISP','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'isps', 'action' => 'delete', $isp['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $isp['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New ISP', true),  array('controller' => 'isps', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new ISP','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />

    <h3><?php __('MODEM/GATEWAY'); ?></h3>
    <?php if (!empty($audit['Modem'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Make And Model'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Modem'] as $modem):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $modem['make and model']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'modems', 'action' => 'view/'.$modem['id']), array('title'=> 'View a Modem','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'modems', 'action' => 'edit/'.$modem['id']), array('title'=> 'Edit a Modem','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'modems', 'action' => 'delete', $modem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $modem['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Modem', true), array('controller' => 'modems', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Modem','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /> <br />

    <h3><?php __('ROUTER'); ?></h3>
    <?php if (!empty($audit['Device'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Make And Model'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Device'] as $device):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $device['make and model']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'devices', 'action' => 'view/'.$device['id']), array('title'=> 'View a Router','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'devices', 'action' => 'edit/'.$device['id']), array('title'=> 'Edit a Router','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'devices', 'action' => 'delete', $device['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $device['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Router', true), array('controller' => 'devices', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Router','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />
    <h3><?php __('USER'); ?></h3>
    <?php if (!empty($audit['Member'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('User'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Member'] as $member):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $member['user']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'members', 'action' => 'view/'.$member['id']), array('title'=> 'View a User','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'members', 'action' => 'edit/'.$member['id']), array('title'=> 'Edit a User','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'members', 'action' => 'delete', $member['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $member['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New User', true), array('controller' => 'members', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new User','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />

    <h3><?php __('BACKUP'); ?></h3>
    <?php if (!empty($audit['Backup'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Name'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Backup'] as $backup):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $backup['name']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'backups', 'action' => 'view/'.$backup['id']), array('title'=> 'View a Backup','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'backups', 'action' => 'edit/'.$backup['id']), array('title'=> 'Edit a Backup','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'backups', 'action' => 'delete', $backup['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $backup['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Backup', true), array('controller' => 'backups', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Backup','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />
    <h3><?php __('VIRUS PROTECTION'); ?></h3>
    <?php if (!empty($audit['Infection'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Antivirus'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Infection'] as $infection):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $infection['antivirus']; ?></td>

                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'infections', 'action' => 'view/'.$infection['id']), array('title'=> 'View an Infection','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'infections', 'action' => 'edit/'.$infection['id']), array('title'=> 'Edit an Infection','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'infections', 'action' => 'delete', $infection['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $infection['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Antivirus', true), array('controller' => 'infections', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Virus Protection','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />
    <h3><?php __('SHARED FOLDERS'); ?></h3>
    <?php if (!empty($audit['SharedFolder'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Name'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['SharedFolder'] as $sharedfolder):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $sharedfolder['name']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'shared_folders', 'action' => 'view/'.$sharedfolder['id']), array('title'=> 'View a Shared Folder','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true),  array('controller' => 'shared_folders', 'action' => 'edit/'.$sharedfolder['id']), array('title'=> 'Edit a Shared Folder','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'shared_folders', 'action' => 'delete', $sharedfolder['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sharedfolder['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Shared Folder', true), array('controller' => 'shared_folders', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Shared Folder','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <br /><br />
    <h3><?php __('NETWORK DEVICES'); ?></h3>
    <?php if (!empty($audit['NetworkDevice'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Make and Model'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['NetworkDevice'] as $networkdevice):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $networkdevice['make and model']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true),  array('controller' => 'network_devices', 'action' => 'view/'.$networkdevice['id']), array('title'=> 'View a Network Device','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'network_devices', 'action' => 'edit/'.$networkdevice['id']), array('title'=> 'Edit a Network Device','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'network_devices', 'action' => 'delete', $networkdevice['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $networkdevice['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Network Device', true), array('controller' => 'network_devices', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new User','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
    <h3><?php __('Computers'); ?></h3>
    <?php if (!empty($audit['Computer'])): ?>
        <table cellpadding = "0" cellspacing = "0">
            <tr>
                <th><?php __('Name'); ?></th>
                <th class="actions"><?php __('Actions'); ?></th>
            </tr>
            <?php
            $i = 0;
            foreach ($audit['Computer'] as $computer):
                $class = null;
                if ($i++ % 2 == 0) {
                    $class = ' class="altrow"';
                }
                ?>
                <tr<?php echo $class; ?>>
                    <td><?php echo $computer['name']; ?></td>
                    <td class="actions">
                        <?php echo $this->Html->link(__('View', true), array('controller' => 'computers', 'action' => 'view/'.$computer['id'])); ?>
                        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'computers', 'action' => 'edit/'.$computer['id']), array('title'=> 'Edit a Computer','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
                        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'computers', 'action' => 'delete', $computer['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $computer['id'])); ?>
                    </td>
                </tr>
            <?php endforeach; ?>
        </table>
    <?php endif; ?>

    <div class="right">
        <?php echo $this->Html->link(__('New Computer', true), array('controller' => 'computers', 'action' => 'add/'.$audit['Audit']['id']), array('title'=> 'Adding a new Computer','onclick'=> "Modalbox.show(this.href, {title: this.title, width: 500}); return false;")); ?>
    </div>
</div>











